import App from "../App";
import Deail from "../pages/deail";
import Error from "../pages/error";
import Home from "../pages/home";
import Search from "../pages/search";
import {createBrowserRouter} from 'react-router-dom'


export const router = createBrowserRouter([
  {
    path: "/",
    element: <App></App>,
    children:[
        {
            index:true,
            element:<Home></Home>
        },
        {
            path:"home",
            element:<Home></Home>
        },
    ]
  },
  {
    path:"/deail",
    element:<Deail></Deail>
  },
  {
    path:"/search",
    element:<Search></Search>
  },
  {
    path:"*",
    element:<Error></Error>
  },
]);